package jp.tkym.labs.gwt.client.table;

import com.google.gwt.user.client.ui.Widget;

public class FlexTableBindSource {
	private Widget widget;
	private String styleName;
	private int rowspan;
	private int colspan;
	
	public FlexTableBindSource(Widget widget){
		this(widget, null, 1, 1);
	}
	
	public FlexTableBindSource(Widget widget, String styleName, int rowspan, int colspan){
		this.widget = widget;
		this.styleName = styleName;
		this.rowspan = rowspan;
		this.colspan = colspan;
	}
	
	public int getRowspan() {
		return rowspan;
	}
	public void setRowspan(int rowspan) {
		this.rowspan = rowspan;
	}
	public int getColspan() {
		return colspan;
	}
	public void setColspan(int colspan) {
		this.colspan = colspan;
	}
	public Widget getWidget() {
		return widget;
	}
	public void setWidget(Widget widget) {
		this.widget = widget;
	}
	public String getStyleName() {
		return styleName;
	}
	public void setStyleName(String styleName) {
		this.styleName = styleName;
	}
}
